﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wq.Model;

namespace Wq.ManagerService.Entities
{
    /// <summary>
    /// 权限组
    /// </summary>
    [TenantAttribute("manager")]
    [SugarTable("Wq_RolePrivilege")]
    public class RolePrivilegeInfo
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }
        /// <summary>
        /// 权限Id
        /// </summary>
        [SugarColumn(ColumnDescription = "RoleId")]
        public long RoleId { get; set; }
        /// <summary>
        /// 页面
        /// </summary>
        [SugarColumn(ColumnDescription = "Route")]
        public int Route { get; set; }
        /// <summary>
        /// 操作权限（查看 添加 删除）
        /// </summary>
        [SugarColumn(ColumnDescription = "Privilege")]
        public int Privilege { get; set; }
    }
}
